import { _decorator, Component, instantiate, Label, Node, UITransform, Vec2 } from 'cc';
import EventManager from '../Global/EventManager';
import { EventEnum } from '../Enum';
import { IPlayer, IRoom } from '../Common';
const { ccclass, property } = _decorator;

@ccclass('RoomManager')
export class RoomManager extends Component {

    init({ id, players }: IRoom) {
        const label = this.getComponent(Label)
        label.string = `房间ID:${id}`
        this.node.active = true
    }


}


